#pragma once


// CWndSpeedmeter

class CWndSpeedmeter : public CWnd
{
	DECLARE_DYNAMIC(CWndSpeedmeter)

private:
	int				m_nSpeed;
	FLOAT			m_fSpeed;

	DWORD			m_dwViewType;
	int m_nMode;

public:
	CWndSpeedmeter();
	virtual ~CWndSpeedmeter();

	void SetSpeed(FLOAT fSpeed);
	void SetViewType(DWORD dwType);
	void UpdateSpeed();	

protected:
	afx_msg void OnPaint();
	DECLARE_MESSAGE_MAP()

public:	
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
};

extern CWndSpeedmeter* g_pSpeedmeter;